using System;
using System.Collections.Generic;
using System.Text;
using Shc.Sql;
using Shc.Json;
namespace CLZ.Data
{
	public static class TableViewRptTicket
	{
		public const string Table = "View_rptTicket";
		public const string ShoppingCartTempID = "ShoppingCartTempID";
		public const string MembersID = "MembersID";
		public const string Modified = "Modified";
		public const string CartType = "CartType";
		public const string ShoppingCartItemID = "ShoppingCartItemID";
		public const string VegetablesID = "VegetablesID";
		public const string PurchasePrice = "PurchasePrice";
		public const string Quantity = "Quantity";
		public const string Description = "Description";
		public const string BusinessID = "BusinessID";
		public const string IsConfirm = "IsConfirm";
		public const string VegetablesTypeID = "VegetablesTypeID";
		public const string NumberOfUnitsID = "NumberOfUnitsID";
		public const string VegetablesName = "VegetablesName";
		public const string SalesGuidePrice = "SalesGuidePrice";
		public const string NumberOfUnitsName = "NumberOfUnitsName";
		public const string VegetablesTypeName = "VegetablesTypeName";
		public const string BusinessName = "BusinessName";
		public const string BusinessNo = "BusinessNo";
		public const string MarketsName = "MarketsName";
		public const string MemberName = "MemberName";
		public const string MemberNo = "MemberNo";
		public const string TelePhone = "TelePhone";
		public const string Address = "Address";
		public const string AreaID = "AreaID";
		public const string AreaName = "AreaName";
		public const string OrderItemNo = "OrderItemNo";
	}
	
	[Serializable]
	public class BaseViewRptTicket
		: IDbSessionEntity, IJsonClass
	{
		int m_ShoppingCartTempID;
		/// <summary>
        /// 
        /// </summary>
        public int ShoppingCartTempID
        {
            get { return m_ShoppingCartTempID; }
            set { m_ShoppingCartTempID = value; }
        }
		
		int? m_MembersID;
		/// <summary>
        /// 
        /// </summary>
        public int? MembersID
        {
            get { return m_MembersID; }
            set { m_MembersID = value; }
        }
		
		DateTime m_Modified;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Modified
        {
            get { return m_Modified; }
            set { m_Modified = value; }
        }
		
		int m_CartType;
		/// <summary>
        /// 
        /// </summary>
        public int CartType
        {
            get { return m_CartType; }
            set { m_CartType = value; }
        }
		
		int m_ShoppingCartItemID;
		/// <summary>
        /// 
        /// </summary>
        public int ShoppingCartItemID
        {
            get { return m_ShoppingCartItemID; }
            set { m_ShoppingCartItemID = value; }
        }
		
		int m_VegetablesID;
		/// <summary>
        /// 
        /// </summary>
        public int VegetablesID
        {
            get { return m_VegetablesID; }
            set { m_VegetablesID = value; }
        }
		
		double m_PurchasePrice;
		/// <summary>
        /// 
        /// </summary>
        public double PurchasePrice
        {
            get { return m_PurchasePrice; }
            set { m_PurchasePrice = value; }
        }
		
		double m_Quantity;
		/// <summary>
        /// 
        /// </summary>
        public double Quantity
        {
            get { return m_Quantity; }
            set { m_Quantity = value; }
        }
		
		string m_Description;
		/// <summary>
        /// 
        /// </summary>
        public string Description
        {
            get { return m_Description; }
            set { m_Description = value; }
        }
		
		int m_BusinessID;
		/// <summary>
        /// 
        /// </summary>
        public int BusinessID
        {
            get { return m_BusinessID; }
            set { m_BusinessID = value; }
        }
		
		bool m_IsConfirm;
		/// <summary>
        /// 
        /// </summary>
        public bool IsConfirm
        {
            get { return m_IsConfirm; }
            set { m_IsConfirm = value; }
        }
		
		int? m_VegetablesTypeID;
		/// <summary>
        /// 
        /// </summary>
        public int? VegetablesTypeID
        {
            get { return m_VegetablesTypeID; }
            set { m_VegetablesTypeID = value; }
        }
		
		int? m_NumberOfUnitsID;
		/// <summary>
        /// 
        /// </summary>
        public int? NumberOfUnitsID
        {
            get { return m_NumberOfUnitsID; }
            set { m_NumberOfUnitsID = value; }
        }
		
		string m_VegetablesName;
		/// <summary>
        /// 
        /// </summary>
        public string VegetablesName
        {
            get { return m_VegetablesName; }
            set { m_VegetablesName = value; }
        }
		
		double m_SalesGuidePrice;
		/// <summary>
        /// 
        /// </summary>
        public double SalesGuidePrice
        {
            get { return m_SalesGuidePrice; }
            set { m_SalesGuidePrice = value; }
        }
		
		string m_NumberOfUnitsName;
		/// <summary>
        /// 
        /// </summary>
        public string NumberOfUnitsName
        {
            get { return m_NumberOfUnitsName; }
            set { m_NumberOfUnitsName = value; }
        }
		
		string m_VegetablesTypeName;
		/// <summary>
        /// 
        /// </summary>
        public string VegetablesTypeName
        {
            get { return m_VegetablesTypeName; }
            set { m_VegetablesTypeName = value; }
        }
		
		string m_BusinessName;
		/// <summary>
        /// 
        /// </summary>
        public string BusinessName
        {
            get { return m_BusinessName; }
            set { m_BusinessName = value; }
        }
		
		string m_BusinessNo;
		/// <summary>
        /// 
        /// </summary>
        public string BusinessNo
        {
            get { return m_BusinessNo; }
            set { m_BusinessNo = value; }
        }
		
		string m_MarketsName;
		/// <summary>
        /// 
        /// </summary>
        public string MarketsName
        {
            get { return m_MarketsName; }
            set { m_MarketsName = value; }
        }
		
		string m_MemberName;
		/// <summary>
        /// 
        /// </summary>
        public string MemberName
        {
            get { return m_MemberName; }
            set { m_MemberName = value; }
        }
		
		string m_MemberNo;
		/// <summary>
        /// 
        /// </summary>
        public string MemberNo
        {
            get { return m_MemberNo; }
            set { m_MemberNo = value; }
        }
		
		string m_TelePhone;
		/// <summary>
        /// 
        /// </summary>
        public string TelePhone
        {
            get { return m_TelePhone; }
            set { m_TelePhone = value; }
        }
		
		string m_Address;
		/// <summary>
        /// 
        /// </summary>
        public string Address
        {
            get { return m_Address; }
            set { m_Address = value; }
        }
		
		int? m_AreaID;
		/// <summary>
        /// 
        /// </summary>
        public int? AreaID
        {
            get { return m_AreaID; }
            set { m_AreaID = value; }
        }
		
		string m_AreaName;
		/// <summary>
        /// 
        /// </summary>
        public string AreaName
        {
            get { return m_AreaName; }
            set { m_AreaName = value; }
        }
		
		string m_OrderItemNo;
		/// <summary>
        /// 
        /// </summary>
        public string OrderItemNo
        {
            get { return m_OrderItemNo; }
            set { m_OrderItemNo = value; }
        }
		
		
		#region IDbSessionEntity Members
		public void ReadDBData(RowDataReader reader)
        {
            m_ShoppingCartTempID = reader[TableViewRptTicket.ShoppingCartTempID];
            m_MembersID = reader[TableViewRptTicket.MembersID];
            m_Modified = reader[TableViewRptTicket.Modified];
            m_CartType = reader[TableViewRptTicket.CartType];
            m_ShoppingCartItemID = reader[TableViewRptTicket.ShoppingCartItemID];
            m_VegetablesID = reader[TableViewRptTicket.VegetablesID];
            m_PurchasePrice = reader[TableViewRptTicket.PurchasePrice];
            m_Quantity = reader[TableViewRptTicket.Quantity];
            m_Description = reader[TableViewRptTicket.Description];
            m_BusinessID = reader[TableViewRptTicket.BusinessID];
            m_IsConfirm = reader[TableViewRptTicket.IsConfirm];
            m_VegetablesTypeID = reader[TableViewRptTicket.VegetablesTypeID];
            m_NumberOfUnitsID = reader[TableViewRptTicket.NumberOfUnitsID];
            m_VegetablesName = reader[TableViewRptTicket.VegetablesName];
            m_SalesGuidePrice = reader[TableViewRptTicket.SalesGuidePrice];
            m_NumberOfUnitsName = reader[TableViewRptTicket.NumberOfUnitsName];
            m_VegetablesTypeName = reader[TableViewRptTicket.VegetablesTypeName];
            m_BusinessName = reader[TableViewRptTicket.BusinessName];
            m_BusinessNo = reader[TableViewRptTicket.BusinessNo];
            m_MarketsName = reader[TableViewRptTicket.MarketsName];
            m_MemberName = reader[TableViewRptTicket.MemberName];
            m_MemberNo = reader[TableViewRptTicket.MemberNo];
            m_TelePhone = reader[TableViewRptTicket.TelePhone];
            m_Address = reader[TableViewRptTicket.Address];
            m_AreaID = reader[TableViewRptTicket.AreaID];
            m_AreaName = reader[TableViewRptTicket.AreaName];
            m_OrderItemNo = reader[TableViewRptTicket.OrderItemNo];
        }
		
		public void WriteDBData(RowDataWriter writer)
        {
        }

        public void SetIdentityAfterInsert(DBObject idd)
        {
        }
		
		public string TableName
        {
            get { return TableViewRptTicket.Table; }
        }
		#endregion
		
		
		#region IJsonClass Members

        public void JsonDeSerializeObj(JsonHashTable hashToRead)
        {
             m_ShoppingCartTempID = hashToRead["ShoppingCartTempID"];
			 
             m_MembersID = hashToRead["MembersID"];
			 
             m_Modified = hashToRead["Modified"];
			 
             m_CartType = hashToRead["CartType"];
			 
             m_ShoppingCartItemID = hashToRead["ShoppingCartItemID"];
			 
             m_VegetablesID = hashToRead["VegetablesID"];
			 
             m_PurchasePrice = hashToRead["PurchasePrice"];
			 
             m_Quantity = hashToRead["Quantity"];
			 
             m_Description = hashToRead["Description"];
			 
             m_BusinessID = hashToRead["BusinessID"];
			 
             m_IsConfirm = hashToRead["IsConfirm"];
			 
             m_VegetablesTypeID = hashToRead["VegetablesTypeID"];
			 
             m_NumberOfUnitsID = hashToRead["NumberOfUnitsID"];
			 
             m_VegetablesName = hashToRead["VegetablesName"];
			 
             m_SalesGuidePrice = hashToRead["SalesGuidePrice"];
			 
             m_NumberOfUnitsName = hashToRead["NumberOfUnitsName"];
			 
             m_VegetablesTypeName = hashToRead["VegetablesTypeName"];
			 
             m_BusinessName = hashToRead["BusinessName"];
			 
             m_BusinessNo = hashToRead["BusinessNo"];
			 
             m_MarketsName = hashToRead["MarketsName"];
			 
             m_MemberName = hashToRead["MemberName"];
			 
             m_MemberNo = hashToRead["MemberNo"];
			 
             m_TelePhone = hashToRead["TelePhone"];
			 
             m_Address = hashToRead["Address"];
			 
             m_AreaID = hashToRead["AreaID"];
			 
             m_AreaName = hashToRead["AreaName"];
			 
             m_OrderItemNo = hashToRead["OrderItemNo"];
			 
        }

        public void JsonSerializeObj(JsonHashTable hashToFill)
        {
            hashToFill["ShoppingCartTempID"] = ShoppingCartTempID;
			
            hashToFill["MembersID"] = MembersID;
			
            hashToFill["Modified"] = Modified;
			
            hashToFill["CartType"] = CartType;
			
            hashToFill["ShoppingCartItemID"] = ShoppingCartItemID;
			
            hashToFill["VegetablesID"] = VegetablesID;
			
            hashToFill["PurchasePrice"] = PurchasePrice;
			
            hashToFill["Quantity"] = Quantity;
			
            hashToFill["Description"] = Description;
			
            hashToFill["BusinessID"] = BusinessID;
			
            hashToFill["IsConfirm"] = IsConfirm;
			
            hashToFill["VegetablesTypeID"] = VegetablesTypeID;
			
            hashToFill["NumberOfUnitsID"] = NumberOfUnitsID;
			
            hashToFill["VegetablesName"] = VegetablesName;
			
            hashToFill["SalesGuidePrice"] = SalesGuidePrice;
			
            hashToFill["NumberOfUnitsName"] = NumberOfUnitsName;
			
            hashToFill["VegetablesTypeName"] = VegetablesTypeName;
			
            hashToFill["BusinessName"] = BusinessName;
			
            hashToFill["BusinessNo"] = BusinessNo;
			
            hashToFill["MarketsName"] = MarketsName;
			
            hashToFill["MemberName"] = MemberName;
			
            hashToFill["MemberNo"] = MemberNo;
			
            hashToFill["TelePhone"] = TelePhone;
			
            hashToFill["Address"] = Address;
			
            hashToFill["AreaID"] = AreaID;
			
            hashToFill["AreaName"] = AreaName;
			
            hashToFill["OrderItemNo"] = OrderItemNo;
			
        }

        #endregion
		
	}
}
